package com.nxy.cpfsfe;

import java.util.HashMap;
import java.util.Map;

import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;

import com.nxy.cpfsfe.mybatis.pojo.ToParm;

/**
 * to_parm表结果集处理器，用于将结果集转换为特定Map
 * 
 * @author jjw
 *
 */
public class ToParmMapResultHandler implements ResultHandler {

	private Map<String,String> configMap = new HashMap<String,String>();
	
	public void handleResult(ResultContext resultcontext) {
		
		ToParm toParm = (ToParm)resultcontext.getResultObject();
		configMap.put(toParm.getDataCd(), toParm.getDataVal());
		
	}
	
	public Map<String,String> getConifg(){
		return configMap;
	}

}
